package com.lry.crawlers.cartoon.service.impl;

import com.lry.crawlers.cartoon.entity.CartoonChapter;
import com.lry.crawlers.cartoon.mapper.CartoonChapterMapper;
import com.lry.crawlers.cartoon.service.CartoonChapterService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CartoonChapterServiceImpl implements CartoonChapterService {

    @Autowired
    CartoonChapterMapper cartoonChapterMapper;


    @Override
    public int setCartoonChapter(CartoonChapter cartoonChapter) {
        int insert = cartoonChapterMapper.insert(cartoonChapter);
        return insert;
    }

    @Override
    public int setCartoonChapters(List<CartoonChapter> cartoonChapters) {
        int i = cartoonChapterMapper.insertBatchSomeColumn(cartoonChapters);
        return i;
    }

    }



